﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("roleService", function (httpService) {
        var methods = {
            "get": function (params) {
                return httpService.get("/manage/getrole", params);
            },
            "gets": function (params) {
                return httpService.get("/manage/getroles", params);
            },
            "put": function (params) {
                return httpService.put("/manage/putrole", params);
            },
            "post": function (params) {
                return httpService.post("/manage/postrole", params);
            },
            "delete": function (id) {
                return httpService.delete("/manage/deleterole/" + id);
            }
        }
        return methods;
    });
});